package com.comtop.topcloud.device.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.comtop.topcloud.device.model.mysql.EnergySystemAlarmConditions;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface EnergySystemAlarmConditionsMapper extends BaseMapper<EnergySystemAlarmConditions> {

    @Select("SELECT * FROM energy_system_alarm_conditions WHERE base_id = #{alarmLibraryId}")
    List<EnergySystemAlarmConditions> getConditionsByAlarmLibraryId(@Param("alarmLibraryId") String alarmLibraryId);

}
